<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>风控服务平台</title>
<link href="./static/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="./static/css/normalize.css?twitterbutton" rel="stylesheet" type="text/css"/>
<link href="./static/css/tricks.css?twitterbutton" rel="stylesheet" type="text/css"/>
<link href="./static/css/elusive-icons.min.css?twitterbutton" rel="stylesheet" type="text/css"/>
<link href="./static/css/codemirror.css?twitterbutton" rel="stylesheet" type="text/css"/>
<link href="./static/css/screen.css?twitterbutton" rel="stylesheet" type="text/css"/>
<link href="./static/plugin/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="./static/plugin/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="./static/css/menu.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="static/img/favicon/favicon.ico" type="image/x-icon">
<link rel="icon" href="static/img/favicon/favicon.ico" type="image/x-icon">
<script src="./static/plugin/easyui/jquery.min.js" type="text/javascript"></script>
<script src="./static/plugin/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="./static/plugin/easyui/jquery.easyui.ext.js" type="text/javascript" charset="utf-8"></script>
<script src="./static/plugin/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="./static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="./static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="./static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="./static/plugin/assets/jslib.menu.js" type="text/javascript"></script>
<script src="./static/js/libs/jquery.cookie.min.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
<script languange="javascript">
	var topWin = window;
	function addTab(title, url){    
	    if ($('#tt').tabs('exists', title)){
	        $('#tt').tabs('select', title);  
	    } else {
	        var content = '<iframe scrolling="auto" frameborder="0"  src="'+url+'" style="width:100%;height:100%;"></iframe>';
	        $('#tt').tabs('add',{
	            title:title,
	            content:content,
	            closable:true
	        });    
	    }    
	}
	
	function loginOut() {
		$.restfulPostJson('api/logout', null, function(data) {
			if(data.code == '0' && data.rows == true) {
				$(window.location).attr("href", "./login.html");
			} else {
				if(data.message) {
					alert(data.message);
				} else {
					alert("登出失败ﺿ");
				}
			}
		})
	}
	
	function modifyPassword() {
		addTab("修改密码", "page/admin/ModifyPassword.html");
		/* $.restfulPostJson('api/account/modifyUserPwd', null, function(data) {
			if(data.code == '0' && data.rows == true) {
				$(window.location).attr("href", "./login.html");
			} else {
				if(data.message) {
					alert(data.message);
				} else {
					alert("登出失败ﺿ");
				}
			}
		}) */
	}
	
	$(function() {
		$('#displayUserName').text($.cookie('signUserName'));
	});
	
</script>
</head>
<body class="easyui-layout">
	<div data-options="region:'north',border:false"
		style="height: 60px; padding: 0px; overflow: hidden">
		<div style='display: none'>
			<input type='hidden' name='csrfmiddlewaretoken'
				value='4v3pUgaR902n7bgrswCbuCLXlo9vAKuk' />
		</div>
		<div class="top-logo row">
			<div class="col-md-4">
				<img  src="static/img/logo-blacknwhite.png" class="top-logo-img">
				<span class="top-log-name">风控服务平台</span>
			</div>
			<div id="menutree" class="menu-navbar col-md-6"></div>
			<div class="col-md-2">
				<ul class="user-info">
					<li class="pull-left">
						<a class="aiButton" href="#"><span class="el el-bullhorn"></span>&nbsp;您好:<span id="displayUserName"></span>&nbsp;&nbsp;</a>
					</li>
					<li class="pull-left"><a class="aiButton" id="modifyPassword" title="modifyPassword" href="javascript:modifyPassword();" >修改密码 <span class="el el-user"></span></a></li>
					<li class="pull-left"><a class="aiButton" id="loginout" title="loginout" href="javascript:loginOut();" >注销 <span class="el el-off"></span></a></li>
				</ul>
			</div>

		</div>
	</div>
    <div data-options="region:'center',title:''" >
        <div id="tt" class="easyui-tabs" fit="true" border="false">
            <div title="规则服务日志" style="padding:0px" border="false" fit="true">
                <iframe id="infoFrame" name="centerFrame" src="page/rsp-conosle/BizRuleLogList.html" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
            </div>
        </div>
    </div>
</body>
</html>
<script>

	$(function() {
		//使用javascript初始势

		// 初始化菜单
		generateMenu('#menutree', 'tree');
	});
</script>
